import http from '../../utils/request'

//登录
export const login = (data) => {
    return http.post('/user/login', data)
}

//获取用户信息
export const getUserInfo = () => {
    return http.get('/user/getInfo')
}

//登出
export const logout = () => {
    return http.get('/user/logout')
}

// 登录权限
export const getDesktopMenu = () => {
    return http.get('/permission/getDesktopMenu')
}
